package com.ruoyi.zhjd.laboratory.modules.furnacehthy.controller;

// import com.qzsoft.jeemis.common.utils.Result;
// import com.qzsoft.zhjd.common.utils.ResultUtils;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.zhjd.laboratory.modules.furnacehthy.model.ExperimentModel;
import com.ruoyi.zhjd.laboratory.modules.furnacehthy.service.FurnaceHthyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 北京航天航宇燃烧炉实验数据采集
 */
@RestController
@RequestMapping("/furnace/hthy")
public class FurnaceHthyController {

    @Autowired
    private FurnaceHthyService furnaceHthyService;

    /**
     * 保存采集数据
     */
    @PostMapping("saveCollectData")
    public R<String> saveCollectData(@RequestBody ExperimentModel model) {
        furnaceHthyService.saveCollectData(model);
        return R.ok(model.getSyjid());
    }

}
